{%  extends "../public/base.html"  %}

{%  block concent  %}
<div class="tpl-content-wrapper">

    <div class="container-fluid am-cf">
        <div class="row">
            <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                <div class="page-header-heading">
                    <span class="am-icon-home page-header-heading-icon"></span> 
                    轮播图 

                </div>
            </div>
           
        </div>

    </div>

    <div class="row-content am-cf">

        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-fl">轮播图</div>
                    <div class="widget-function am-fr">
                        <a href="javascript:;" class="am-icon-cog"></a>
                    </div>
                </div>
                <div class="widget-body am-fr">
                    <table class="am-table am-table-bordered am-table-radius am-table-striped">
                      <thead>
                        <tr>
                          <th>ID</th>
                          <th>图片</th>
                          <th>操作</th>
                          
                        </tr>
                      </thead>
                      <tbody>
                      {% for v in map %}
                        <tr>
                          <td class="am-text-middle">{{ v.id }}</td>
                          <td class="am-text-middle"><img src="{{ v.pic }}" width="70"></td>
                          
                          <td  class="am-text-middle">
                              <div class="tpl-table-black-operation">
                                            
                                  <a href="{% url 'mapdel' v.id %}" class="tpl-table-black-operation-del">
                                      <i class="am-icon-trash"></i>删除</a>
                              </div>
                          </td>
                          </tr>
                        {% endfor %}
                      </tbody>
                    </table>
                    
                </div>
                
            </div>
        </div>   

    </div>
</div>     

{%  endblock  %}